#include "HttpServer.hpp"

#include <memory>

void Usage(const std::string &proc)
{
    cout << "\n\rUsage: " << proc << " proc" << endl;
}

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        exit(1);
    }
    uint16_t serverport = std::stoi(argv[1]);

    std::unique_ptr<HttpServer> hs(new HttpServer(serverport));

    hs->start();

    return 0;
}
